import request from '@/api/ajax'
//获取所有药品信息的接口
export const getMedicineList=(params)=>request({url:'/getAllMedicine',method:'get',params});

//添加药品
export const addMedicine=(data)=>request({url:'/addMedicine',method:'post',data});

//删除药品信息
export const deleteMedicine=(data)=>request({url:`/deleteMedicine/${data}`,method:'delete'});

//获取所有的采购订单
export const getAllExpense=()=>request({url:'/getAllExpense',method:'get'});

//添加采购订单
export const addExpense=(data)=>request({url:'/addExpense',method:'post',data});

//删除采购订单
export const deleteExpense=(data)=>request({url:`/deleteExpense/${data}`,method:'delete'});